package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.pojo.EsLoan;
import com.bwie.pojo.Loan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 国兴越
 * @version 1.0
 * Create by
 */
@Mapper
public interface LoanMapper extends BaseMapper<Loan> {
    @Select("SELECT l.*,p.numperiods,r.repay,m.loantime,t.type FROM tb_loan l,tb_periods p,tb_repay r,tb_time m,tb_type t where l.pid=p.id and l.rid=r.id and l.mid=m.id and l.tid=t.id")
    List<EsLoan> lists();
}
